import request from '@/utils/request'

export function login(data) {
  return request({
    url: 'api/Auth/Login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: 'api/Auth/GetUserInfo',
    method: 'get'
  })
}

export function addUser(data) {
  return request({
    url: 'api/User/Create',
    method: 'post',
    data
  })
}

export function updUser(data) {
  return request({
    url: 'api/User/Update',
    method: 'post',
    data
  })
}

export function updUserPwd(data) {
  return request({
    url: 'api/User/UpdatePassword',
    method: 'post',
    data
  })
}

export function getAllUser(data) {
  return request({
    url: 'api/User/GetAllUser',
    method: 'post',
    data
  })
}

